<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
//维控拉取
Route::any('/test','ApiController@test');
Route::any('/ceshi','ApiController@ceshi');
Route::any('/shuju','ApiController@shuju');
//公众号服务器
Route::any('wechat/{account}','WechatController@serve');
//回调
Route::any('/oauth_callback/{account}','WechatController@oauth_callback');
//二维码
Route::any('getQrcode','WechatController@getQrcode');
//自定义菜单
Route::any('menu','WechatController@menu');
//设置电信iot回调地址
Route::any('SetCallback','SmokeController@SetCallback');
//阿里云iot测试
Route::any('iottest','ZnyjgController@iottest');
Route::any('test','TestController@index');
Route::get('sendMessage','TestController@sendMessage');
Route::get('essertest','TestController@essertest');
//小车遥控
Route::any('car','HikangController@car');
Route::any('jisuan','TestController@test');
Route::get('batteryTest','BetteryTestController@index');
Route::post('setBatterySimulation','BetteryTestController@setSimulation');